package com.cxf.service;

import com.cxf.pojo.Shopcart;

import java.util.List;

public interface ShopcartService {

	List<Shopcart> getShopcartByUserName(String userName);//获取购物车列表 //错误
	List<Shopcart> getShopcartByUserId(Shopcart shopcart);
	Shopcart findShopcart(Shopcart shopcart); //根据用户名和商品名称查找购物车记录
	void deleteShopcart(Shopcart shopcart); //删除
	void addShopcart(Shopcart shopcart); //添加
	void updateShopcart(Shopcart shopcart); //更新

}
